using System;
using System.ServiceProcess;
using KJFramework.Dynamic.Components;

namespace KJFramework.Dynamic.Template.Service.Mono
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			DynamicDomainService service = new DynamicDomainService ();
			Console.WriteLine ("Main func run succeed.");
			ServiceBase[] ServicesToRun;
			ServicesToRun = new ServiceBase[] 
			{ 
				new MonoService() 
			};
			ServiceBase.Run(ServicesToRun);
		}
	}
}
